/**
 * Copyright 2019 Inc.
 **/
package com.myz.demo;

import feign.Headers;
import feign.Param;
import feign.RequestLine;

import java.util.List;

/**
 * @author maoyz0621 on 19-7-13
 * @version: v1.0
 */
public interface GitHub {
    @RequestLine("GET /repos/{owner}/{repo}/contributors")
    List<Contributor> contributors(@Param("owner") String owner, @Param("repo") String repo);

    @RequestLine("POST /")
    @Headers("Content-Type: application/json")
    void login(Credentials content);

}
